package org.wzry.controller;

import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.wzry.lmx.Lmx;

@Controller
@RequestMapping("/lmx")
public class Lmxcontroller {
	
	Lmx w = new Lmx();
	/**
	 * 主页
	 * @return
	 */
	@RequestMapping("/index.do")
	public String index() {	
		return "index";
	}
	
	/**
	 * 图鉴
	 * @param request
	 * @return
	 */
	@RequestMapping("/tj.do")
	public String handbook(HttpServletRequest request) {
		request.setAttribute("handbook", w.handbook());
		return "lmx-tj";
	}
	
	@RequestMapping("/dy.do")
	public String island(HttpServletRequest request) {
		request.setAttribute("island", w.island());
		return "lmx-dy";
	}
	
	/**
	 * 段位
	 * @param request
	 * @return
	 */
	@RequestMapping("/dw.do")
	public String dangeading(HttpServletRequest request) {
		request.setAttribute("dangeading", w.dangeading());
		return "lmx-dw";
	}
	
	/**
	 * 主题
	 * @return
	 */
	@RequestMapping("/zt.do")
	public String motif(HttpServletRequest request) {
		request.setAttribute("motif", w.motif());
		return "lmx-zt";
		
	}
	
}
